Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hash capitalization in API links #2204

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

Eric-Arellano
Copy link
Collaborator

Fixes #2177. We weren't normalizing the hash in all cases.

@@ -26,10 +26,11 @@ test.describe("updateLinks", () => {
[link3](qiskit_ibm_runtime.RuntimeJob.job#wut)
[link4](../stubs/qiskit_ibm_runtime.RuntimeJob)
[link5](../apidocs/qiskit_ibm_runtime.RuntimeJob#qiskit_ibm_runtime.RuntimeJob)
[link6](qiskit_ibm_runtime.RuntimeJob)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a new link 6, so updated the link numbers for all these

Comment on lines -112 to -114
// Anchors generated from markdown headings are always lower case but, if these
// headings are API references, Sphinx sometimes expects them to include
// uppercase characters.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This came from the helper function lowerCaseIfMarkdownAnchor. I accidentally didn't delete it last PR. Its implementation was more robust so I use that rather than inlining

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@Eric-Arellano Eric-Arellano added this pull request to the merge queue Oct 30, 2024
Merged via the queue into main with commit 13f57a1 Oct 30, 2024
3 checks passed
@Eric-Arellano Eric-Arellano deleted the EA/fix-hash-handling branch October 30, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants